//
//  DTJavascriptCommand.h
//  PersonalManager
//
//  Created by user on 16/8/1.
//  Copyright © 2016年 Haiyun.Qian. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "WebViewJavascriptBridge.h"

@interface DTJavascriptCommand : UIViewController

@property (nonatomic, strong) NSString *handleName;
@property (nonatomic, strong) NSString *moduleName;
@property (nonatomic, strong) NSString *className;
@property (nonatomic, strong) NSString *methodName;
@property (nonatomic, strong) NSDictionary *params;

@property (nonatomic, strong) WVJBResponseCallback responseCallback;
@property (nonatomic, strong) UIWebView *webView;
@property (nonatomic, strong) UIViewController *controller;
@property (nonatomic, strong) NSObject  *actionObject;

- (instancetype)init: (NSString *)handleName anddata:(NSObject *)data andresponscallback: (WVJBResponseCallback) responseCallback andwebView: (UIWebView *)webView andcontroller: (UIViewController *)controller;

-(id) getParamValue: (NSString *) key;

-(void) cancelResponse: (NSString *)message;

-(void) successRessponse: (NSDictionary *)result;

-(void) failedResponse: (int)code andmessage: (NSString *)message;

@end
